using UnityEngine.PlayerLoop;

public class PlayerStateMachine
{

    public PlayerState currentState
    {
        get; private set;
    }

    public void Initializae(PlayerState _startState)
    {
        currentState = _startState;
        currentState.Enter();

    }

    public void ChangeState(PlayerState _newState)
    {
        currentState.Exit();
        currentState = _newState;
        currentState.Enter();
    }

}
